/*
 * Copyright (c) 2009. Silenus Consultoria, S.L.
 */
package es.silenus.detecta.service.impl;

import es.silenus.detecta.service.AlfrescoService;

import java.io.File;

import org.springframework.security.userdetails.UserDetails;


/**
 * Dummy alfresco service.
 *
 * @author <a href="mailto:malonso@silenus-consultoria.es">Mariano Alonso</a>
 *
 * @since 26-jun-2009 14:33:50
 */
public class DummyAlfrescoService implements AlfrescoService {
	/**
	 * Make directories.
	 *
	 * @param path the full path.
	 *
	 * @return true if successful, false otherwise.
	 */
	public boolean mkdirs(String path) {
		return false;
	}

	/**
	 * Uploads a file to alfresco.
	 *
	 * @param file the file.
	 * @param mimeType the mime type.
	 * @param encoding the encoding.
	 * @param remoteFolderPath the remote file path (i.e.: "/organization/upload-folder").
	 *
	 * @return true if upload was successful, false otherwise.
	 */
	public boolean uploadFile(File file, String mimeType, String encoding, String remoteFolderPath) {
		return false;
	}

	/**
	 * Retrieves the organization folder URL.
	 *
	 * @param organizationName the organization name.
	 *
	 * @return the organization folder URL.
	 */
	public String getOrganizationFolderURL(String organizationName) {
		return null;
	}

	/**
	 * Checks a organization folder.
	 *
	 * @param organizationName the organization name.
	 *
	 * @return true if successful, false otherwise.
	 */
	public boolean checkOrganizationFolder(String organizationName) {
		return false;
	}

	/**
	 * Checks if a given group exists.
	 *
	 * @param groupName the group name.
	 * @return false if the group does not exist.
	 */
	public boolean groupExists(String groupName) {
		return false;
	}

	/**
	 * Creates a group.
	 *
	 * @param groupName the group name.
	 * @return true if successfully created the group, false otherwise.
	 */
	public boolean createGroup(String groupName) {
		return false;
	}

	/**
	 * Removes a group.
	 *
	 * @param groupName the group name.
	 * @return true if successfully removed the group, false otherwise.
	 */
	public boolean removeGroup(String groupName) {
		return false;
	}

	/**
	 * Checks if a user exists.
	 *
	 * @param userName the user name.
	 * @return true if the user exists, false otherwise.
	 */
	public boolean userExists(String userName) {
		return false;
	}

	/**
	 * Creates a user.
	 *
	 * @param userDetails the user details.
	 * @return true if created, false otherwise.
	 */
	public boolean createUser(final UserDetails userDetails) {
		return false;
	}

	/**
	 * Updates an existing user.
	 *
	 * @param userDetails the user details.
	 * @return true if updated, false otherwise.
	 */
	public boolean updateUser(final UserDetails userDetails) {
		return false;
	}

	/**
	 * Removes a user from alfresco.
	 *
	 * @param userName the user name.
	 * @return true if removed, false otherwise.
	 */
	public boolean removeUser(final String userName) {
		return false;
	}

	/**
	 * Adds a user to the group.
	 *
	 * @param userName	the user name.
	 * @param groupName the group name.
	 * @return true if succesfully added, false otherwise.
	 */
	public boolean addUserToGroup(String userName, String groupName) {
		return false;
	}

	/**
	 * Removes a user from a group.
	 *
	 * @param userName	the user name.
	 * @param groupName the group name.
	 * @return true if succesfully added, false otherwise.
	 */
	public boolean removeUserFromGroup(String userName, String groupName) {
		return false;
	}

	/**
	 * Change user password.
	 *
	 * @param userName the user.
	 * @param password the new password.
	 * @return the changed password.
	 */
	public boolean changePassword(final String userName, final String password) {
		return false;
	}
}
